# coding:utf-8

"""
tf_demo04_placeholder
Created on 2016/12/9 14:26
@author: GuoYufu
@group : OceanHorn
@contact: OceanHorn@163.com
"""

import tensorflow as tf

if __name__ == "__main__":
    input1 = tf.placeholder(dtype=tf.float32)
    input2 = tf.placeholder(dtype=tf.float32)

    output = tf.mul(input1, input2)

    with tf.Session() as session:
        print session.run(
            fetches=output, feed_dict={input1:[7.], input2:[2.]}
        )
